File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Flatpak
4
4
on :
5
5
push :
6
6
branches :
7
- - main # (change if needed)
7
+ - main
8
8
workflow_dispatch :
9
9
10
10
env :
14
14
IMAGE_TAG : # Tag of image
15
15
FLATPAK_BUNDLE : # Name of bundle (excl. .flatpak)
16
16
FLATPAK_BRANCH : # Flatpak branch
17
- UPSTREAM_BRANCH : main # Upstream branch (change if needed)
18
17
FLATPAK_BUILD_DIR : build-dir
19
18
FLATPAK_BUILD_REPO : build-repo
20
19
98
97
path : ${{ env.FLATPAK_BUNDLE }}.flatpak
99
98
100
99
publish-oci :
101
- if : github.ref == 'refs/heads/${UPSTREAM_BRANCH} '
100
+ if : github.ref == 'refs/heads/main '
102
101
runs-on : ubuntu-latest
103
102
needs : build
104
103
Original file line number Diff line number Diff line change 6
6
7
7
env :
8
8
MANIFEST_PATH : # Path to manifest
9
- UPSTREAM_BRANCH : main # Upstream branch (change if needed)
10
9
REPO : # link to project repository (optional)
11
10
12
11
jobs :
26
25
GITHUB_TOKEN : ${{ secrets.PAT }}
27
26
run : |
28
27
set -x
29
- git clone -b ${UPSTREAM_BRANCH} https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git ${UPSTREAM_BRANCH}
30
- cd ${UPSTREAM_BRANCH}
28
+ git clone -b main https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main
29
+ cd main
31
30
git config user.email "github-actions[bot]@users.noreply.github.com"
32
31
git config user.name "github-actions[bot]"
33
32
/app/flatpak-external-data-checker --update --commit-only ${MANIFEST_PATH}
36
35
continue-on-error : true
37
36
run : |
38
37
set -x
39
- cd ${UPSTREAM_BRANCH}
40
- git push origin HEAD:${UPSTREAM_BRANCH}
38
+ cd main
39
+ git push origin HEAD:main
You can’t perform that action at this time.
0 commit comments