Skip to content

Commit

Permalink
Merge pull request #355 from una-auxme/354-bug-drive-action-failed-on…
Browse files Browse the repository at this point in the history
…-merge

Fixed drive action
  • Loading branch information
JulianTrommer authored Oct 28, 2024
2 parents 384aa5e + 0810e36 commit dbe5232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ jobs:
USER_GID=1000
- name: Save PR ID
if: github.event_name == 'pull_request'
env:
PR_ID: ${{ github.event.number }}
run: |
mkdir -p ./pr
echo $PR_ID > ./pr/pr_id
- name: Upload PR ID
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: pr_id
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/drive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
echo "AGENT_VERSION=${AGENT_VERSION}"
echo "COMPOSE_FILE=${COMPOSE_FILE}"
- name: 'Download artifact (PR ID)'
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
Expand All @@ -46,10 +47,12 @@ jobs:
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/pr_id.zip`, Buffer.from(download.data));
- name: 'Unzip artifact (PR ID)'
if: github.event_name == 'pull_request'
run: |
unzip pr_id.zip
- name: Check PR ID
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
Expand All @@ -71,6 +74,7 @@ jobs:
run: docker compose down -v
# add rendered JSON as comment to the pull request
- name: Add simulation results as comment
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit dbe5232

Please sign in to comment.