refactor: remove unused options in GitHub action
Might need to revert some of these changes in the future if GitHub changes or removes the method of using environment variables.
This commit is contained in:
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: Check for updates
|
name: Check for updates
|
||||||
|
|
||||||
on:
|
on:
|
||||||
#schedule:
|
schedule:
|
||||||
# https://crontab.guru/every-day-8am
|
# https://crontab.guru/every-day-8am
|
||||||
#- cron: 0 8 * * *
|
- cron: 0 8 * * *
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
branches:
|
branches:
|
||||||
- add-new-release
|
- add-new-release
|
||||||
@ -17,23 +17,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Run update check
|
- name: Run update check
|
||||||
run: echo "version=$(bash check-updates.sh --version-only)" >> $GITHUB_ENV
|
run: echo "version=$(bash check-updates.sh --version-only)" >> $GITHUB_ENV
|
||||||
#run: echo "::set-output name=STATUS::$(bash check-updates.sh --version-only)"
|
|
||||||
#id: update
|
|
||||||
|
|
||||||
- name: Create new branch
|
- name: Create new branch
|
||||||
run: git branch add-new-release
|
run: git branch add-new-release
|
||||||
|
|
||||||
- name: Update version number
|
- name: Update version number
|
||||||
run: |
|
run: |
|
||||||
#sed "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo \"${{env.version}}\" | \
|
sed -i "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo \"${{env.version}}\" | \
|
||||||
sed -i "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo 8.2 | \
|
|
||||||
awk '{print $1}')\"/" \
|
awk '{print $1}')\"/" \
|
||||||
check-updates.sh
|
check-updates.sh
|
||||||
|
|
||||||
- name: Open pull request
|
- name: Open pull request
|
||||||
# https://docs.github.com/en/actions/learn-github-actions/expressions
|
# https://docs.github.com/en/actions/learn-github-actions/expressions
|
||||||
if: contains(env.version, '==')
|
if: contains(env.version, '==')
|
||||||
#if: contains(steps.update.outputs.STATUS, '==')
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user