|
7 | 7 | name: Setup |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | steps: |
10 | | - # - name: Import SSH key |
11 | | - # id: key |
12 | | - # run: | |
13 | | - # echo "Importing SSH ley..." |
14 | | - # mkdir -p ~/.ssh |
15 | | - # echo "${{ secrets.ID_RSA }}" | base64 -d > ~/.ssh/id_rsa |
16 | | - # echo "Updating ~/.ssh/known_hosts..." |
17 | | - # ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts |
18 | | - # chmod 700 ~/.ssh |
19 | | - # chmod 600 ~/.ssh/id_rsa |
20 | | - # echo "Step completed" |
| 10 | + - name: Import SSH key |
| 11 | + id: key |
| 12 | + run: | |
| 13 | + echo "Importing SSH ley..." |
| 14 | + mkdir -p ~/.ssh |
| 15 | + echo "${{ secrets.ID_RSA }}" | base64 -d > ~/.ssh/id_rsa |
| 16 | + echo "Updating ~/.ssh/known_hosts..." |
| 17 | + ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts |
| 18 | + chmod 700 ~/.ssh |
| 19 | + chmod 600 ~/.ssh/id_rsa |
| 20 | + echo "Step completed" |
21 | 21 |
|
22 | | - # - name: Clone repo |
23 | | - # id: clone |
24 | | - # run: git clone git@github.com:flathub/io.github.Figma_Linux.figma_linux.git ./ |
| 22 | + - name: Clone repo |
| 23 | + id: clone |
| 24 | + run: git clone git@github.com:flathub/io.github.Figma_Linux.figma_linux.git ./ |
25 | 25 |
|
26 | | - # - name: Update configs |
27 | | - # id: update |
28 | | - # run: | |
29 | | - # sudo apt install libxml2-utils -y |
30 | | - # echo "<li>Bug Fixes:</li>" >> /tmp/testfile |
31 | | - # echo "<ul>" >> /tmp/testfile |
32 | | - # echo "<li>fix: 1</li>" >> /tmp/testfile |
33 | | - # echo "<li>fix: 2</li>" >> /tmp/testfile |
34 | | - # echo "</ul>" >> /tmp/testfile |
35 | | - # data=$(cat /tmp/testfile | tr -d '\n') |
36 | | - # cat ./io.github.Figma_Linux.figma_linux.appdata.xml |
37 | | - # cat /tmp/testfile |
38 | | - # prevVersion=$(cat ./io.github.Figma_Linux.figma_linux.appdata.xml | grep -Eo 'release\sversion=".*"\s' | tr -d '[a-z=" \s\n]') |
39 | | - # version="0.7.3" |
40 | | - # echo "Bump version from $prevVersion to $version" |
41 | | - # sed -i "s/$prevVersion/$version/" ./io.github.Figma_Linux.figma_linux.yml |
42 | | - # sed -i "s/$prevVersion/$version/" ./io.github.Figma_Linux.figma_linux.appdata.xml |
43 | | - # cat ./io.github.Figma_Linux.figma_linux.appdata.xml | tr -d '\n' > /tmp/tmp1 |
44 | | - # sed -i "s|<description>.\{0,12\}<ul>.*<\/ul>.\{0,12\}<\/description>|<description><ul>$data<\/ul><\/description>|g" /tmp/tmp1 |
45 | | - # xmllint --format /tmp/tmp1 > ./io.github.Figma_Linux.figma_linux.appdata.xml |
46 | | - # cat ./io.github.Figma_Linux.figma_linux.appdata.xml |
| 26 | + - name: Update configs |
| 27 | + id: update |
| 28 | + run: | |
| 29 | + node -v |
| 30 | + npm -v |
47 | 31 |
|
48 | 32 | # - name: Push |
49 | 33 | # id: push |
|
53 | 37 | # git add . |
54 | 38 | # git commit -m "Release v$version" |
55 | 39 | # git push origin master |
56 | | - - name: Create Pull Request |
57 | | - run: | |
58 | | - curl -X POST -u "ChugunovRoman:${{ secrets.REPO_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flathub/io.github.Figma_Linux.figma_linux/pulls -d '{"title": "Release v0.7.4 version","head":"Figma-Linux:bump-version","base":"master"}' |
| 40 | + # - name: Create Pull Request |
| 41 | + # run: | |
| 42 | + # curl -X POST -u "ChugunovRoman:${{ secrets.REPO_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flathub/io.github.Figma_Linux.figma_linux/pulls -d '{"title": "Release v0.7.4 version","head":"Figma-Linux:bump-version","base":"master"}' |
59 | 43 |
|
60 | 44 | # - uses: octokit/request-action@v2.x |
61 | 45 | # name: Create Pull Request |
|
0 commit comments